home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / cstegr.z / cstegr
Encoding:
Text File  |  2002-10-03  |  9.8 KB  |  265 lines

  1.  
  2.  
  3.  
  4. CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CSTEGR - compute selected eigenvalues and, optionally, eigenvectors of a
  10.      real symmetric tridiagonal matrix T
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE CSTEGR( JOBZ, RANGE, N, D, E, VL, VU, IL, IU, ABSTOL, M, W, Z,
  14.                         LDZ, ISUPPZ, WORK, LWORK, IWORK, LIWORK, INFO )
  15.  
  16.          CHARACTER      JOBZ, RANGE
  17.  
  18.          INTEGER        IL, INFO, IU, LDZ, LIWORK, LWORK, M, N
  19.  
  20.          REAL           ABSTOL, VL, VU
  21.  
  22.          INTEGER        ISUPPZ( * ), IWORK( * )
  23.  
  24.          REAL           D( * ), E( * ), W( * ), WORK( * )
  25.  
  26.          COMPLEX        Z( LDZ, * )
  27.  
  28. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  29.      These routines are part of the SCSL Scientific Library and can be loaded
  30.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  31.      directs the linker to use the multi-processor version of the library.
  32.  
  33.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  34.      4 bytes (32 bits). Another version of SCSL is available in which integers
  35.      are 8 bytes (64 bits).  This version allows the user access to larger
  36.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  37.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  38.      only one of the two versions; 4-byte integer and 8-byte integer library
  39.      calls cannot be mixed.
  40.  
  41. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  42.      CSTEGR computes selected eigenvalues and, optionally, eigenvectors of a
  43.      real symmetric tridiagonal matrix T. Eigenvalues and
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.         (a) Compute T - sigma_i = L_i D_i L_i^T, such that L_i D_i L_i^T
  51.             is a relatively robust representation,
  52.         (b) Compute the eigenvalues, lambda_j, of L_i D_i L_i^T to high
  53.             relative accuracy by the dqds algorithm,
  54.         (c) If there is a cluster of close eigenvalues, "choose" sigma_i
  55.             close to the cluster, and go to step (a),
  56.         (d) Given the approximate eigenvalue lambda_j of L_i D_i L_i^T,
  57.             compute the corresponding eigenvector by forming a
  58.             rank-revealing twisted factorization.
  59.      The desired accuracy of the output can be specified by the input
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      parameter ABSTOL.
  75.  
  76.      For more details, see "A new O(n^2) algorithm for the symmetric
  77.      tridiagonal eigenvalue/eigenvector problem", by Inderjit Dhillon,
  78.      Computer Science Division Technical Report No. UCB/CSD-97-971, UC
  79.      Berkeley, May 1997.
  80.  
  81.      Note 1 : Currently CSTEGR is only set up to find ALL the n eigenvalues
  82.      and eigenvectors of T in O(n^2) time
  83.      Note 2 : Currently the routine CSTEIN is called when an appropriate
  84.      sigma_i cannot be chosen in step (c) above. CSTEIN invokes modified
  85.      Gram-Schmidt when eigenvalues are close.
  86.      Note 3 : CSTEGR works only on machines which follow ieee-754 floating-
  87.      point standard in their handling of infinities and NaNs.  Normal
  88.      execution of CSTEGR may create NaNs and infinities and hence may abort
  89.      due to a floating point exception in environments which do not conform to
  90.      the ieee standard.
  91.  
  92.  
  93. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  94.      JOBZ    (input) CHARACTER*1
  95.              = 'N':  Compute eigenvalues only;
  96.              = 'V':  Compute eigenvalues and eigenvectors.
  97.  
  98.      RANGE   (input) CHARACTER*1
  99.              = 'A': all eigenvalues will be found.
  100.              = 'V': all eigenvalues in the half-open interval (VL,VU] will be
  101.              found.  = 'I': the IL-th through IU-th eigenvalues will be found.
  102.  
  103.      N       (input) INTEGER
  104.              The order of the matrix.  N >= 0.
  105.  
  106.      D       (input/output) REAL array, dimension (N)
  107.              On entry, the n diagonal elements of the tridiagonal matrix T. On
  108.              exit, D is overwritten.
  109.  
  110.      E       (input/output) REAL array, dimension (N)
  111.              On entry, the (n-1) subdiagonal elements of the tridiagonal
  112.              matrix T in elements 1 to N-1 of E; E(N) need not be set.  On
  113.              exit, E is overwritten.
  114.  
  115.      VL      (input) REAL
  116.              VU      (input) REAL If RANGE='V', the lower and upper bounds of
  117.              the interval to be searched for eigenvalues. VL < VU.  Not
  118.              referenced if RANGE = 'A' or 'I'.
  119.  
  120.      IL      (input) INTEGER
  121.              IU      (input) INTEGER If RANGE='I', the indices (in ascending
  122.              order) of the smallest and largest eigenvalues to be returned.  1
  123.              <= IL <= IU <= N, if N > 0; IL = 1 and IU = 0 if N = 0.  Not
  124.              referenced if RANGE = 'A' or 'V'.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      ABSTOL  (input) REAL
  141.              The absolute error tolerance for the eigenvalues/eigenvectors. IF
  142.              JOBZ = 'V', the eigenvalues and eigenvectors output have residual
  143.              norms bounded by ABSTOL, and the dot products between different
  144.              eigenvectors are bounded by ABSTOL. If ABSTOL is less than
  145.              N*EPS*|T|, then N*EPS*|T| will be used in its place, where EPS is
  146.              the machine precision and |T| is the 1-norm of the tridiagonal
  147.              matrix. The eigenvalues are computed to an accuracy of EPS*|T|
  148.              irrespective of ABSTOL. If high relative accuracy is important,
  149.              set ABSTOL to DLAMCH( 'Safe minimum' ).  See Barlow and Demmel
  150.              "Computing Accurate Eigensystems of Scaled Diagonally Dominant
  151.              Matrices", LAPACK Working Note #7 for a discussion of which
  152.              matrices define their eigenvalues to high relative accuracy.
  153.  
  154.      M       (output) INTEGER
  155.              The total number of eigenvalues found.  0 <= M <= N.  If RANGE =
  156.              'A', M = N, and if RANGE = 'I', M = IU-IL+1.
  157.  
  158.      W       (output) REAL array, dimension (N)
  159.              The first M elements contain the selected eigenvalues in
  160.              ascending order.
  161.  
  162.      Z       (output) COMPLEX array, dimension (LDZ, max(1,M) )
  163.              If JOBZ = 'V', then if INFO = 0, the first M columns of Z contain
  164.              the orthonormal eigenvectors of the matrix T corresponding to the
  165.              selected eigenvalues, with the i-th column of Z holding the
  166.              eigenvector associated with W(i).  If JOBZ = 'N', then Z is not
  167.              referenced.  Note: the user must ensure that at least max(1,M)
  168.              columns are supplied in the array Z; if RANGE = 'V', the exact
  169.              value of M is not known in advance and an upper bound must be
  170.              used.
  171.  
  172.      LDZ     (input) INTEGER
  173.              The leading dimension of the array Z.  LDZ >= 1, and if JOBZ =
  174.              'V', LDZ >= max(1,N).
  175.  
  176.      ISUPPZ  (output) INTEGER ARRAY, dimension ( 2*max(1,M) )
  177.              The support of the eigenvectors in Z, i.e., the indices
  178.              indicating the nonzero elements in Z. The i-th eigenvector is
  179.              nonzero only in elements ISUPPZ( 2*i-1 ) through ISUPPZ( 2*i ).
  180.  
  181.      WORK    (workspace/output) REAL array, dimension (LWORK)
  182.              On exit, if INFO = 0, WORK(1) returns the optimal (and minimal)
  183.              LWORK.
  184.  
  185.      LWORK   (input) INTEGER
  186.              The dimension of the array WORK.  LWORK >= max(1,18*N)
  187.  
  188.              If LWORK = -1, then a workspace query is assumed; the routine
  189.              only calculates the optimal size of the WORK array, returns this
  190.              value as the first entry of the WORK array, and no error message
  191.              related to LWORK is issued by XERBLA.
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          CCCCSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  203.  
  204.  
  205.  
  206.      IWORK   (workspace/output) INTEGER array, dimension (LIWORK)
  207.              On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.
  208.  
  209.      LIWORK  (input) INTEGER
  210.              The dimension of the array IWORK.  LIWORK >= max(1,10*N)
  211.  
  212.              If LIWORK = -1, then a workspace query is assumed; the routine
  213.              only calculates the optimal size of the IWORK array, returns this
  214.              value as the first entry of the IWORK array, and no error message
  215.              related to LIWORK is issued by XERBLA.
  216.  
  217.      INFO    (output) INTEGER
  218.              = 0:  successful exit
  219.              < 0:  if INFO = -i, the i-th argument had an illegal value
  220.              > 0:  if INFO = 1, internal error in SLARRE, if INFO = 2,
  221.              internal error in CLARRV.
  222.  
  223. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  224.      Based on contributions by
  225.         Inderjit Dhillon, IBM Almaden, USA
  226.         Osni Marques, LBNL/NERSC, USA
  227.         Ken Stanley, Computer Science Division, University of
  228.           California at Berkeley, USA
  229.  
  230.  
  231. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  232.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  233.  
  234.      This man page is available only online.
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.